//
//  ZLOtherPageV.m
//  Quartz2D
//
//  Created by zhaolei on 2018/4/10.
//  Copyright © 2018年 zhaolei. All rights reserved.
//

#import "ZLOtherPageV.h"
#import "ZLLinePage.h"

@implementation ZLOtherPageV

/**根据枚举值返回对应的视图对象
 *@param frame 位置和尺寸
 *@param pageType 枚举值
 */
+ (instancetype)otherPageWithFrame:(CGRect)frame PageType:(ZLLoadOtherPageType)pageType {
    ZLOtherPageV *otherPageV = nil;
    CGFloat minWidth = frame.size.width / 4;
    switch (pageType) {
        case ZLLoadOtherPageLine:{//
            otherPageV = [[ZLLinePage alloc] initWithFrame:CGRectMake(minWidth, minWidth * 2, minWidth * 2, minWidth * 2)];
            break;
        }
        default:{//
            otherPageV = [[ZLOtherPageV alloc] initWithFrame:frame];
            break;
        }
    }
    otherPageV.backgroundColor = [UIColor whiteColor];
    return otherPageV;
}

@end

